package IC.AST.nodes;

import java.util.List;

/**
 * a function call expression
 */
public abstract class FunctionCall extends Expression {
	private String methodID;	// the method name
	private List<Expression> args;	// the formal arguments

	/**
	 * @param methodID the method name
	 * @param args the formal arguments
	 * @param line the node line number
	 * @param column the node column number
	 */
	public FunctionCall(String methodID, List<Expression> args, int line, int column) {
		super(line,column);
		this.methodID = methodID;
		this.args = args;
	}

	/**
	 * @return the method name
	 */
	public String getMethodID() {
		return this.methodID;
	}

	/**
	 * @return the formal arguments
	 */
	public List<Expression> getArgs() {
		return this.args;
	}
}
